import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useTestStore = defineStore(
  'test',
  () => {
    const count = ref(999)
    const addCount = () => {
      count.value++
    }
    return { count, addCount }
  },
  {
    // persist: true
    persist: {
      paths: ['count']
    }
  }
)
